<?php $this->load->view("_inc/header_login"); ?>
<script>
    $(document).ready(function(){
        $("#registro").validate();
    });
</script>

<?php $hidden = array('evento' => $this->uri->segment(3)); ?>

<?=form_open('usuario/registrar', 'id="registro"', $hidden);?>
    <label>Nome:</label>
    <?=form_input('nome', '', 'class="required" minlength="10"');?><br />
    <label>CPF:</label>
    <?=form_input('cpf', '', 'class="required" minlength="10"');?><br />
    <label>EJ:</label>
    <?=form_input('ej', '', 'class="required" minlength="2"');?><br />
    <label>Cargo:</label>
    <?=form_input('cargo', '', 'class="required" minlength="5"');?><br />
    <label>Área:</label>
    <?=form_dropdown('area', $area, '', 'class="required"');?><br />
    <label>Email:</label>
    <?=form_input('email', '', 'class = "required email"');?><br />
    <label>Senha:</label>
    <?=form_password('senha', '', 'class="required" minlength="5"');?><br />
    <?=form_submit('', 'Registrar');?>
<?=form_close()?>